package com.hcs.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.math.BigDecimal;
import java.util.Date;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Getter;
import lombok.Setter;

/**
 * <p>
 * 
 * </p>
 *
 * @author hcs
 * @since 2025-01-12 10:06
 */
@Getter
@Setter
@TableName("order")
@Schema(name = "Order", description = "订单表")
public class Order {

    // 主键
    @Schema(description = "主键")
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    // 用户id
    @Schema(description = "用户id")
    @TableField("user_id")
    private Long userId;

    // 总价
    @Schema(description = "总价")
    @TableField("total_price")
    private BigDecimal totalPrice;

    // 状态
    @Schema(description = "状态")
    @TableField("status")
    private String status;

    // 支付方式
    @Schema(description = "支付方式")
    @TableField("payment_method")
    private String paymentMethod;

    // 地址
    @Schema(description = "地址")
    @TableField("address")
    private String address;

    // 联系电话
    @Schema(description = "联系电话")
    @TableField("contact_phone")
    private String contactPhone;

    // 创建时间
    @Schema(description = "创建时间")
    @TableField("created_at")
    private Date createdAt;

    // 更新时间
    @Schema(description = "更新时间")
    @TableField("updated_at")
    private Date updatedAt;
}
